######################################################################
# qmake file for Windows, MacOS and Linux
######################################################################

MOC_DIR     = build
OBJECTS_DIR = build
UI_DIR      = build
RCC_DIR     = build

CONFIG      += debug \
               warn_on \
               qt \
               thread \
               precompile_header
CONFIG      -= release

QT          += network phonon

INCLUDEPATH += . build

unix {
    QTDIR        = /usr/share/qt4/bin
    TARGET       = bin/qtvomp
    TEMPLATE     = app

    INCLUDEPATH += /usr/include/phonon src

    LIBS        += -lphonon

    CONFIG      += release
}

win32 {
    TEMPLATE     = vcapp
    TARGET       = qtvomp
    DEPENDPATH  += . debug release src
}

mac {
    TEMPLATE     = app

    INCLUDEPATH += . src /Library/Frameworks/QtNetwork.framework/Headers \
                         /Library/Frameworks/phonon.framework/Headers

    LIBS        += -framework phonon \
                   -framework QtNetwork

    ICON         = src/images/icon.icns
}

# Input
RESOURCES += src/qtvomp.qrc

HEADERS += src/vompglobal.h \
           src/ringbuffer.h \
           src/qtvomp.h \
           src/channellist.h \
           src/schedulelist.h \
           src/dlgchannelinformation.h \
           src/dlgrecordinginformation.h \
           src/dlgsettimer.h \
           src/mediawidgetitem.h \
           src/channellistmodel.h \
           src/channellistdelegate.h \
           src/timerlistmodel.h \
           src/timerlistdelegate.h \
           src/epgdelegate.h \
           src/vdr.h \
           src/vdrthread.h \
           src/vdrfindserver.h \
           src/iostream.h \
           src/recordingswidgetitem.h \
           src/settings.h \
           src/widgetchannellist.h \
           src/widgetchannellistview.h \
           src/widgetepg.h \
           src/widgetepgheader.h \
           src/widgetepglistview.h \
           src/widgetosd.h \
           src/widgetosdtv.h \
           src/widgetosdrecording.h \
           src/widgetrecordingslider.h \
           src/widgettimers.h \
           src/widgetoptions.h \
           src/widgetplayvideo.h \
           src/widgetvideo.h \
           src/enterchannelnumber.h

SOURCES += src/main.cpp \
           src/qtvomp.cpp \
           src/channellist.cpp \
           src/schedulelist.cpp \
           src/dlgchannelinformation.cpp \
           src/dlgrecordinginformation.cpp \
           src/dlgsettimer.cpp \
           src/mediawidgetitem.cpp \
           src/channellistmodel.cpp \
           src/channellistdelegate.cpp \
           src/timerlistmodel.cpp \
           src/timerlistdelegate.cpp \
           src/epgdelegate.cpp \
           src/vdr.cpp \
           src/vdrthread.cpp \
           src/vdrfindserver.cpp \
           src/iostream.cpp \
           src/recordingswidgetitem.cpp \
           src/settings.cpp \
           src/widgetchannellist.cpp \
           src/widgetchannellistview.cpp \
           src/widgetepg.cpp \
           src/widgetepgheader.cpp \
           src/widgetepglistview.cpp \
           src/widgetosd.cpp \
           src/widgetosdtv.cpp \
           src/widgetosdrecording.cpp \
           src/widgetrecordingslider.cpp \
           src/widgettimers.cpp \
           src/widgetoptions.cpp \
           src/widgetplayvideo.cpp \
           src/widgetvideo.cpp \
           src/enterchannelnumber.cpp

FORMS += src/dlgchannelinformation.ui \
         src/dlgrecordinginformation.ui \
         src/dlgsettimer.ui \
         src/widgetchannellist.ui \
         src/widgetoptions.ui \
         src/widgetosdtv.ui \
         src/widgettimers.ui \
         src/widgetepg.ui
